package com.lin.eat.serivce;

import com.alibaba.fastjson.JSONObject;
import com.lin.eat.entry.Order;
import com.lin.eat.entry.OrderComment;
import com.lin.eat.entry.ServerResponse;

import java.util.List;

public interface OrderService {

    //提交订单
    ServerResponse<JSONObject> submitOrder(Order order, String token);

    //获取订单详情
    ServerResponse<Order> getOrderDetail(String o_id);

    //支付订单
    ServerResponse updateOrderState(String o_id);

    //获取所有订单
    ServerResponse<List<Order>> getAllOrder();

    //删除订单
    ServerResponse deleteOrder(String o_id);

    //提交评论
    ServerResponse submitOrderComment(OrderComment orderComment);
}
